package Thread_communication;

public class Main {
    public static void main(String[] args) {
        Account acc = new Account("ID-2011", 0);

        Deposit d1 = new Deposit("干爹", acc);
        Deposit d2 = new Deposit("亲爹", acc);
        Deposit d3 = new Deposit("岳父", acc);

        Draw dr1 = new Draw("小明", acc);
        Draw dr2 = new Draw("小红", acc);

        d1.start();
        d2.start();
        d3.start();
        dr1.start();
        dr2.start();
    }
}
